<template>
<div class="" v-on:click="show('我是父元素')">
    <button v-on:click="show('我是子元素1')">事件冒泡</button>
    <button v-on:click.stop="show('我是子元素2')">阻止事件冒泡</button>
</div>
</template>

<script setup>
let show =message => console.log(message);
</script>

<style scoped></style>